package com.team3.ecommerce.service;

import com.alipay.api.AlipayApiException;
import com.team3.ecommerce.domain.CommInOrder;
import com.team3.ecommerce.domain.Commodity;
import com.team3.ecommerce.domain.Order;
import com.team3.ecommerce.domain.UserInfo;

import java.util.List;

public interface OrderService {
    Order getOrder(String id);
    List<CommInOrder> getCommListInOrder(String order_uid);
    Order newOrder(UserInfo userInfo);
    Order insertCommodity(String order_uid,String comm_id,int num);
    Order makeNewOrderFromCart(UserInfo userInfo);
    String getPaymentPage(String order_uid,String returnUrl);
    void queryPayment(String order_uid);
    List<Order> searchOrdersByUserWithinPage(UserInfo userInfo,int offset,int pageSize);
    int orderSizeOfUser(UserInfo userInfo);
}
